#pragma once

#include <FL/Fl_Gl_Window.H>
#include <FL/gl.h>
#include <vector.h>



//
// OpenGL App With FLTK Widgets
// erco 11/08/06
//



class NoteBox
{


public:
    double x;
    //double y;
    //GLint x;
    GLint y;

    double w;
    double h;
    //GLint w;
    //GLint h;

    int id;
    int idSizer;

    int pluginId; //this is to say which plugin plays this note
    //int slaveId; //this is to say which plugin slave is responible for this note if it is a polyphonic plugin

    double r,g,b;
    bool isOn;

    bool draggingSize;
    bool dragging;
    double mouseClickGlX, mouseClickGlY;
    void toggle();
    bool event(int event, int button, double xGl, double yGl, int glObjectIdIndexIn = -1);

    NoteBox (int *glObjectIdIndexIn);
    NoteBox ();
    void draw();
};
